e="Python"
if len(e) >=3:
    new_string = e[0:3] *3
else:
    new_string=e*3
print(new_string)
e="hi"
if len(e)>=3:
    new_string=e[0:3]*3
else:
    new_string=e*3
print(new_string)